import { defHttp } from "@/utils/http";

// ERP 押金记录 API
export const depositHistoryApi = {
	// 查询押金记录列表
	depositHistoryList: async (params: any) => {
		return await defHttp.get({ url: `/his/deposit-history/page`, params });
	},
	// 新增押金记录
	depositHistoryCreate: async (data: any) => {
		return await defHttp.post({ url: `/his/deposit-history/create`, data });
	},

	// 修改押金记录
	depositHistoryUpdate: async (data: any) => {
		return await defHttp.put({ url: `/his/deposit-history/update`, data });
	},

	// 删除押金记录
	depositHistoryDelete: async (id: number) => {
		return await defHttp.delete({ url: `/his/deposit-history/delete?id=` + id });
	}
};
